import java.util.Random;

public class demo10 {
    public static void main(String[] args) {
        //创建随机数
        Random r = new Random();
        //循环五个数字
        for (int a = 1; a <= 5; a++) {
            //每一组数字的范围大小一样，组数比第一组多多少，区间大小就增加几个10
            int i = r.nextInt(1, 11) + (10 * (a - 1));
            //打印
            System.out.println("第" + a + "个随机数为" + i);
        }
    }
}